package cn.tedu.autoshow.passport.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

@Data
@Accessors(chain = true)
public class AdminUpdateParam implements Serializable {
    private static final long serialVersionUID = 1L;

    /*@NotNull(message = "用户名不能为空")
    @ApiModelProperty(value = "用户名", required = true, example = "username01")
    private String username;*/

    @NotNull(message = "昵称不能为空")
    @ApiModelProperty(value = "昵称", required = true, example = "昵称001")
    private String nickname;

    @NotNull(message = "头像不能为空")
    @ApiModelProperty(value = "头像", required = true, example = "头像")
    private String avatar;

    //@NotNull(message = "手机号不能为空")
    //@Pattern(regexp ="1[0-9]{10}", message = "手机格式不正确")
    @ApiModelProperty(value = "手机号", required = true, example = "18512345678")
    private String phone;

    //@NotNull(message = "邮箱不能为空")
    //@Pattern(regexp ="^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(.[a-zA-Z0-9_-]+)+$", message = "邮箱格式不正确")
    @ApiModelProperty(value = "邮箱", required = true, example = "aaa@qq.com")
    private String email;

    @ApiModelProperty(value = "简介", required = true, example = "简介")
    private String description;

}
